Optimal. Leaf size=411 \[ \frac {\sin (c+d x) \cos (c+d x) \left ((a+b) \tan ^4(c+d x)+2 a \tan ^2(c+d x)+a\right )}{d \sqrt {a+b} \sqrt {a+b \sin ^4(c+d x)} \left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right )}+\frac {\sqrt [4]{a} \cos ^2(c+d x) \left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right ) \sqrt {\frac {(a+b) \tan ^4(c+d x)+2 a \tan ^2(c+d x)+a}{\left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{a+b} \tan (c+d x)}{\sqrt [4]{a}}\right )|\frac {1}{2} \left (1-\frac {\sqrt {a}}{\sqrt {a+b}}\right )\right )}{2 d (a+b)^{3/4} \sqrt {a+b \sin ^4(c+d x)}}-\frac {\sqrt [4]{a} \cos ^2(c+d x) \left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right ) \sqrt {\frac {(a+b) \tan ^4(c+d x)+2 a \tan ^2(c+d x)+a}{\left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{a+b} \tan (c+d x)}{\sqrt [4]{a}}\right )|\frac {1}{2} \left (1-\frac {\sqrt {a}}{\sqrt {a+b}}\right )\right )}{d (a+b)^{3/4} \sqrt {a+b \sin ^4(c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.38, antiderivative size = 411, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3232, 1139, 1103, 1195} \[ \frac {\sin (c+d x) \cos (c+d x) \left ((a+b) \tan ^4(c+d x)+2 a \tan ^2(c+d x)+a\right )}{d \sqrt {a+b} \sqrt {a+b \sin ^4(c+d x)} \left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right )}+\frac {\sqrt [4]{a} \cos ^2(c+d x) \left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right ) \sqrt {\frac {(a+b) \tan ^4(c+d x)+2 a \tan ^2(c+d x)+a}{\left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{a+b} \tan (c+d x)}{\sqrt [4]{a}}\right )|\frac {1}{2} \left (1-\frac {\sqrt {a}}{\sqrt {a+b}}\right )\right )}{2 d (a+b)^{3/4} \sqrt {a+b \sin ^4(c+d x)}}-\frac {\sqrt [4]{a} \cos ^2(c+d x) \left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right ) \sqrt {\frac {(a+b) \tan ^4(c+d x)+2 a \tan ^2(c+d x)+a}{\left (\sqrt {a+b} \tan ^2(c+d x)+\sqrt {a}\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{a+b} \tan (c+d x)}{\sqrt [4]{a}}\right )|\frac {1}{2} \left (1-\frac {\sqrt {a}}{\sqrt {a+b}}\right )\right )}{d (a+b)^{3/4} \sqrt {a+b \sin ^4(c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1103
Rule 1139
Rule 1195
Rule 3232
Rubi steps
\begin {align*} \int \frac {\tan ^2(c+d x)}{\sqrt {a+b \sin ^4(c+d x)}} \, dx &=\frac {\left (\cos ^2(c+d x) \sqrt {a+2 a \tan ^2(c+d x)+(a+b) \tan ^4(c+d x)}\right ) \operatorname {Subst}\left (\int \frac {x^2}{\sqrt {a+2 a x^2+(a+b) x^4}} \, dx,x,\tan (c+d x)\right )}{d \sqrt {a+b \sin ^4(c+d x)}}\\ &=\frac {\left (\sqrt {a} \cos ^2(c+d x) \sqrt {a+2 a \tan ^2(c+d x)+(a+b) \tan ^4(c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+2 a x^2+(a+b) x^4}} \, dx,x,\tan (c+d x)\right )}{\sqrt {a+b} d \sqrt {a+b \sin ^4(c+d x)}}-\frac {\left (\sqrt {a} \cos ^2(c+d x) \sqrt {a+2 a \tan ^2(c+d x)+(a+b) \tan ^4(c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1-\frac {\sqrt {a+b} x^2}{\sqrt {a}}}{\sqrt {a+2 a x^2+(a+b) x^4}} \, dx,x,\tan (c+d x)\right )}{\sqrt {a+b} d \sqrt {a+b \sin ^4(c+d x)}}\\ &=\frac {\cos (c+d x) \sin (c+d x) \left (a+2 a \tan ^2(c+d x)+(a+b) \tan ^4(c+d x)\right )}{\sqrt {a+b} d \sqrt {a+b \sin ^4(c+d x)} \left (\sqrt {a}+\sqrt {a+b} \tan ^2(c+d x)\right )}-\frac {\sqrt [4]{a} \cos ^2(c+d x) E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{a+b} \tan (c+d x)}{\sqrt [4]{a}}\right )|\frac {1}{2} \left (1-\frac {\sqrt {a}}{\sqrt {a+b}}\right )\right ) \left (\sqrt {a}+\sqrt {a+b} \tan ^2(c+d x)\right ) \sqrt {\frac {a+2 a \tan ^2(c+d x)+(a+b) \tan ^4(c+d x)}{\left (\sqrt {a}+\sqrt {a+b} \tan ^2(c+d x)\right )^2}}}{(a+b)^{3/4} d \sqrt {a+b \sin ^4(c+d x)}}+\frac {\sqrt [4]{a} \cos ^2(c+d x) F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{a+b} \tan (c+d x)}{\sqrt [4]{a}}\right )|\frac {1}{2} \left (1-\frac {\sqrt {a}}{\sqrt {a+b}}\right )\right ) \left (\sqrt {a}+\sqrt {a+b} \tan ^2(c+d x)\right ) \sqrt {\frac {a+2 a \tan ^2(c+d x)+(a+b) \tan ^4(c+d x)}{\left (\sqrt {a}+\sqrt {a+b} \tan ^2(c+d x)\right )^2}}}{2 (a+b)^{3/4} d \sqrt {a+b \sin ^4(c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.15, size = 291, normalized size = 0.71 \[ -\frac {2 i \sqrt {2} \sqrt {a} \cos ^2(c+d x) \sqrt {1+\left (1-\frac {i \sqrt {b}}{\sqrt {a}}\right ) \tan ^2(c+d x)} \sqrt {1+\left (1+\frac {i \sqrt {b}}{\sqrt {a}}\right ) \tan ^2(c+d x)} \left (E\left (i \sinh ^{-1}\left (\sqrt {1-\frac {i \sqrt {b}}{\sqrt {a}}} \tan (c+d x)\right )|\frac {\sqrt {a}+i \sqrt {b}}{\sqrt {a}-i \sqrt {b}}\right )-F\left (i \sinh ^{-1}\left (\sqrt {1-\frac {i \sqrt {b}}{\sqrt {a}}} \tan (c+d x)\right )|\frac {\sqrt {a}+i \sqrt {b}}{\sqrt {a}-i \sqrt {b}}\right )\right )}{d \left (\sqrt {a}+i \sqrt {b}\right ) \sqrt {1-\frac {i \sqrt {b}}{\sqrt {a}}} \sqrt {8 a-4 b \cos (2 (c+d x))+b \cos (4 (c+d x))+3 b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\tan \left (d x + c\right )^{2}}{\sqrt {b \cos \left (d x + c\right )^{4} - 2 \, b \cos \left (d x + c\right )^{2} + a + b}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan \left (d x + c\right )^{2}}{\sqrt {b \sin \left (d x + c\right )^{4} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.54, size = 0, normalized size = 0.00 \[ \int \frac {\tan ^{2}\left (d x +c \right )}{\sqrt {a +b \left (\sin ^{4}\left (d x +c \right )\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan \left (d x + c\right )^{2}}{\sqrt {b \sin \left (d x + c\right )^{4} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {tan}\left (c+d\,x\right )}^2}{\sqrt {b\,{\sin \left (c+d\,x\right )}^4+a}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan ^{2}{\left (c + d x \right )}}{\sqrt {a + b \sin ^{4}{\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________